import { ref } from "vue";
import { defineStore } from "pinia";

export const useAppStore = defineStore("app", () => {
  const LineCamera = ref(true);

  // 切换 设备模型列表页面
  const toggleShowComponentPage = () => {
    LineCamera.value = !LineCamera.value;
  };

  return {
    LineCamera,
    toggleShowComponentPage,
  };
});

/** 在 setup 外使用 */
export function useAppStoreHook() {
  return useAppStore();
}
